<?php


namespace app\common\validate;


use think\Validate;

class Order extends Validate
{
  /**
   * 验证规则
   */
  protected $rule = [
    'uid'               => 'require|>:0',
    'order_sn'          => 'require',
      'uname'          => 'require',
    'order_status'      => 'require',
    'order_amount'      => 'require',
    'serve_time'        => 'require',
    'quantity'          => 'require',
    'phone'=>'require',
    'technician_id'          => 'require|>:0'
  ];

  /**
   * 字段描述
   */
  protected $field = [];
  /**
   * 提示消息
   */
  protected $message = [
    'uid.require'               => '用户异常',
    'uid.>'                     => '用户异常',
    'order_sn.require'          => '订单异常',
      'uname.require'          => '下单用户异常',
    'order_status.require'      => '订单异常',
    'order_amount.require'      => '订单价格异常',
    'serve_time.require'        => '服务时间异常',
    'quantity.require'          => '服务数量异常',
    'technician_id.require'          => '技师异常',
    'technician_id.>'                => '技师异常',
    'phone'                          =>'手机号异常'
  ];

}